<?php
define('ROOT_PATH','./');
define('TEMPLATE_DIR','client/');
require_once(ROOT_PATH.'code/bean/config.inc.php');
require_once(ROOT_PATH.'code/class/client/class.client_user.php');
require_once(ROOT_PATH.'code/class/client/calss.client_ques_class.php');
require_once(ROOT_PATH.'code/bean/smarty.config.inc.php');
require_once(ROOT_PATH.'code/bean/db_config.inc.php');
require_once(ROOT_PATH.'code/class/client/class.union.php');
$user=new client_user();
$session=check_login();
if(!$_COOKIE['tovy_login'])
{
	js_alert('请先登录',1,'index.php');
}
$ques_class=new ques_class();
$ques_class->get_assign_tpl();

$position = isset($_GET['sug'])?"建议反馈":"我要提问";


$objUnion = new union();
$siteInfo = $objUnion->getSiteInfo();
$newsList = $objUnion->getNews(2,'',5);//平台新闻
$tpl->assign("nickname",$user->nick_name);
$tpl->assign('siteInfo',$siteInfo);
$tpl->assign('ptxw',$newsList);	//var_dump($newsList);


$tpl->assign("position",$position);
$tpl->assign('ques_class',$ques_class);
$tpl->assign('user',$user);
$tpl->assign('ques_class_list','tpl/ques_class_list.tpl');
$tpl->assign('left_user_info','tpl/left_user_info.tpl');

$tpl->display('ques_class.html');
?>